<?php include "../share/head.html" ?>
<script>
function show()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
var url="../actions/get_latest.php";

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("show").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET",url,true);
xmlhttp.send();
}

function show_many()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
var url="../actions/get_many-g.php";

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("show_many").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET",url,true);
xmlhttp.send();
}

</script>


<body onload="show(),show_many()">
<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<?php include "../share/nav-g.php" ?>
			<div class="jumbotron">
				<h1>
					教室预约系统
				</h1>
				
				<p><p id="show"></p><br/>
					 <a class="btn btn-primary btn-large" href="notice.php">更多公告</a>
				</p>
			</div>
<div class="alert alert-success alert-dismissable">
				 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
				<h4>
					注意！
				</h4>尚未登录，无法进行任何操作！<a href="login.php" class="alert-link">点击此处登录！</a>
			</div>
			<div class="row clearfix" id="show_many">
			</div>
		</div>
	</div>
</div>
<?php include "../share/foot.html" ?>